package cn.alusiaor.eurekaclientarticleservice.exception.response;

import cn.alusiaor.eurekaclientarticleservice.exception.CustomExceptionResponseAdapter;

/**
 * @author zhuzhiping
 * @description 示例异常描述
 * @date 2021/2/5 11:05
 */

public enum ExampleCustomExceptionEnum implements CustomExceptionResponseAdapter {


    /**
     * 请求错误
     */
    ERROR_REQUEST(1000, "请求错误");

    ExampleCustomExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private Integer code;
    private String msg;


    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
